package net.ericaro.neojavagen.classes ;
import net.ericaro.neojavagen.classes.VariableDeclaratorId;
import net.ericaro.neojavagen.classes.VariableModifiers;
import net.ericaro.neojavagen.types.Type ;

/**
* *<pre> FormalParameter :
    VariableModifiers? Type ...? VariableDeclaratorId
</pre>
*/
public class FormalParameter   {

VariableModifiers variablemodifiers;
Type type;
boolean tripleDot;
VariableDeclaratorId variabledeclaratorid ;

public FormalParameter( VariableModifiers variablemodifiers, Type type, boolean tripleDot, VariableDeclaratorId variabledeclaratorid ){
	this.variablemodifiers = variablemodifiers; this.type = type; this.tripleDot = tripleDot; this.variabledeclaratorid = variabledeclaratorid ;
	}public FormalParameter( Type type, VariableDeclaratorId variabledeclaratorid ){
this.type = type; this.variabledeclaratorid = variabledeclaratorid ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	if (this.variablemodifiers !=null ) stringbuilder.append( this.variablemodifiers ).append(" ");
stringbuilder.append( this.type ).append(" ");
if (this.tripleDot ) stringbuilder.append( "..." ).append(" ");
stringbuilder.append( this.variabledeclaratorid ).append(" ") ;
	return stringbuilder.toString();
}

}
